﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YouHP.Model;
using YouHP.Atom;

namespace YouHP.Logic
{
    public class PrescriptionHistoryLogic
    {
        PatientPrescriptionHistories prescriptionHistory = new PatientPrescriptionHistories();


        public List<PrescriptionHistoryInfo> GetHistories(int iPrId, int iPageSize, int iPageNo, out int iCount)
        {
            return prescriptionHistory.GetHistoriesByPrId(iPrId, iPageSize, iPageNo, out iCount);
        }

        public List<PrescriptionHistoryInfo> GetHistories(int iPrId, int iPrescriptionId, int iPageSize, int iPageNo, out int iCount)
        {
            return prescriptionHistory.GetHistoriesByPrescriptionId(iPrId, iPrescriptionId, iPageSize, iPageNo, out iCount);
        }

        public List<PrescriptionHistoryInfo> GetHistories(int iPrId)
        {
            return prescriptionHistory.GetHistoriesByPrId(iPrId);
        }

        public List<PrescriptionHistoryInfo> GetPrescriptionsByPrId(int iPrId)
        {
            return prescriptionHistory.GetPrescriptionByPrId(iPrId);
        }
    }
}
